package com.example.shop.common.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Page {
    public static final int DEFAULT_PAGE_SIZE = 10;

    private int pageIndex;
    private int pageSize = DEFAULT_PAGE_SIZE;
    public Page(int pageIndex){
        this.pageIndex = pageIndex;
        this.pageSize = DEFAULT_PAGE_SIZE;
    }
}
